﻿using FlowCard.PrintCard.Models;
using OfficeOpenXml;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FlowCard.PrintCard.Services
{
    public interface IGenerateFile
    {
        /// <summary>
        /// 零件生成pdf
        /// </summary>
        /// <param name="print">打印信息</param>
        /// <param name="fileName">文件名</param>
        /// <returns></returns>
        string GetorderPDF(Print print, string fileName = "生产订单流程卡");
        /// <summary>
        /// 部整件生成pdf
        /// </summary>
        /// <param name="print">打印信息</param>
        /// <param name="fileName">文件名</param>
        /// <returns></returns>
        string GetorderPDFtwo(Print print, string fileName = "生产订单流程卡");

        /// <summary>
        /// 零件导出excel
        /// </summary>
        /// <param name="print">打印信息</param>
        /// <param name="fileName">文件名</param>
        /// <returns></returns>
        string GetorderExcel(Print print, string fileName = "MO");

        /// <summary>
        /// 部整件导出excel
        /// </summary>
        /// <param name="print">打印信息</param>
        /// <param name="fileName">文件名</param>
        /// <returns></returns>
        string GetorderExcelTwo(Print print, string fileName = "MO");
        (FileStream fileStream, string contentType, string fileDownloadName) DownloadFile(string filepath);

    }
}
